Skip to content

Bugfix - fix broken ember-data GitHub URLS #862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 8, 2023

Conversation

jenweber
Copy link
Contributor

@jenweber jenweber commented May 1, 2023

If the file has packages already in the path, make sure we don't add duplicate packages via the mainDir function.
Fixes an issue with ember data URLS having an incorrect 'packages/packages' in the GitHub source URL

Example problem was
https://api.emberjs.com/ember-data/4.10/classes/RecordArray

Closes ember.js #20404

If the file has packages already in the path, make sure we don't
add duplicate packages via the mainDir function.
Fixes an issue with ember data URLS having an incorrect
'packages/packages' in the GitHub source URL

Example problem was
https://api.emberjs.com/ember-data/4.10/classes/RecordArray
@jenweber
Copy link
Contributor Author

jenweber commented May 1, 2023

@runspired do you have any idea why there were recently some duplicate packages/packages in the links that go to GitHub? This PR above patches it on the front end, but maybe there is something to fix in the ember-data source code too so that this workaround doesn't need to be active for versions moving forward. Let me know if you have any clues!

Copy link
Member

@jaredgalanis jaredgalanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

Copy link
Member

@jaredgalanis jaredgalanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to address the failing tests b/f merging this

@runspired
Copy link
Contributor

This is fixed in EmberData now emberjs/data#8598

@jenweber
Copy link
Contributor Author

jenweber commented May 6, 2023

Awesome, thank you!

@MinThaMie MinThaMie merged commit ac87c80 into master May 8, 2023
@MinThaMie MinThaMie deleted the jw-github-url-fix-for-ember-data branch May 8, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants